/**
 * 
 */
package com.zhiteng.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**  
* <p>Title: Grade.java</p>  
* <p>Description: </p>  
* @author dragon  
* @date 2018年11月14日  
* @version 1.0  
*/
@Table(name="tb_grade")
public class Grade implements Serializable{
	@Id
	private String id;
	@Column(name="grade_name")
	private String gradeName;	//	年级名称
	private String classes; //	班级的字符串拼接：一年级(01)班,一年级(02)班,一年级(03)班
	@Transient
	private List<String> classList = new ArrayList<>(); //	班级的集合
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getGradeName() {
		return gradeName;
	}
	public void setGradeName(String gradeName) {
		this.gradeName = gradeName;
	}
	public List<String> getClassList() {
		return classList;
	}
	public void setClassList(List<String> classList) {
		this.classList = classList;
	}
	@Override
	public String toString() {
		return "Grade [id=" + id + ", gradeName=" + gradeName + ", classList=" + classList + "]";
	}
	
}
